from django.contrib.auth.models import Group
from rest_framework import serializers

from user.models import User


class PermissionAdminsSerializer(serializers.ModelSerializer):
    class Meta:
        model = User
        fields = ['id','username','email','mobile']


class PermissionAdminSimpleSerializer(serializers.ModelSerializer):
    class Meta:
        model = Group
        fields = '__all__'
